

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>validate验证框架演示</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta http-equiv="Page-Enter" content="revealTrans(duration=1, transition=2)"/><meta http-equiv="Page-Exit" content="revealTrans(duration=1, transition=2)"/>
		<link type="text/css" rel="stylesheet" href="../js/validate/css/validate.css" /> 
		<script src="../js/validate/talent-validate-all.js" language="javascript"></script><script src="./demo.js" language="javascript"></script>
	</head>
	<body>
			<form name="form1">
				<table border="1px">
					<tr>
						<td width="160px">
							用户名<input type="text" value="" name="n1" disabled='true'/>不验证disabled的元素
							<br/>
							密码<input type="text" value="" name="n2"/>
							<br/>
							性别 <select name="n3">
								<option value=""></option>
								<option value="male">男</option>
								<option value="female">女</option>
							</select>
							<br/>
							备注<textarea name="n4"></textarea>
							<br/>
							<input type="button" class='button' value="验证" onclick="tt.validate()" />
						
						
						</td>
					</tr>	
				</table>
				
				
			
			</form>
			
			

		</body>
		<script id="talent_script">
			//下面这一行代码为4个字段添加了“非空”验证，同时会自动在4个字段上加上红色星号
			tt.vf.req.add("n1", "n2", "n3", "n4");  
		</script>
</html>
